package com.dragon.smtp.service.impl;

import com.dragon.smtp.domain.Mailbox;
import com.dragon.smtp.dao.MailboxDao;
import com.dragon.smtp.service.IMailboxService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 小龙
 * @since 2022-11-08
 */
@Service
public class MailboxServiceImpl extends ServiceImpl<MailboxDao, Mailbox> implements IMailboxService {
    @Autowired
    MailboxDao mailboxDao;

    @Override
    public Mailbox selectFrombox(String fromUsername, String toFusername) {
        return mailboxDao.selectFrombox(fromUsername,toFusername);
    }

    @Override
    public Mailbox selectToBox(String ToUsername) {
        return mailboxDao.selectTobox(ToUsername);
    }
}
